package com.liruan.rest.dto;

import io.swagger.annotations.ApiModelProperty;

public class PageRequestDTO implements RequestDTO
{
	@ApiModelProperty("本次请求是否按分页返回结果 true -> 分页  false -> 不分页，返回查询到的所有记录, 缺省情况下默认为true")
	Boolean needPage;

	@ApiModelProperty("从第一条记录开始的偏移量")
	Integer offset;

	@ApiModelProperty("请求的记录数量")
	Integer limit;

	
	public void setNeedPage(Boolean needPage)
	{
		this.needPage = needPage;
	}

	public Boolean getNeedPage()
	{
		return needPage;
	}

	public Integer getOffset()
	{
		return offset;
	}

	public Integer getLimit()
	{
		return limit;
	}

	public void setOffset(Integer offset)
	{
		this.offset = offset;
	}

	public void setLimit(Integer limit)
	{
		this.limit = limit;
	}

}
